export default {
    deep_clone (source) {
        return this.isFunction(source)? source : JSON.parse(JSON.stringify(source));
    },

    isUndefined (test) {
        return test === undefined;
    },

    isArray(test) {
        Array.prototype.toString.call(x) === '[object Array]'
    },

    isObject(test) {
        return typeof test === 'object' && !this.isArray(test);
    },

    isFunction(test) {
        return typeof test === 'function';
    }
}
